﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="User_Registration.aspx.cs"
    Inherits="CTEA_INDIA.User_Registration" Theme="Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>User Registration</title>
    <link href="CSS/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="CSS/MyStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <div class="toporagne">
        <%--<img src="Images/top_orange-strip.jpg" />--%>
        <hr size="10" color="#091247" width="900px" />

    </div>
    <%--<div style="padding-top: 100px">
        <hr />
    </div>--%>
    <div  >
    <center >
        <table width="900px" class="MiddleBlackDivReg">
            <tr>
                <td align="center">
                    <table cellpadding="5" cellspacing="5" border="0" width="500" style="background-color:white"  >
                        <tr>
                            <td colspan="2" align="center">
                                <span id="errSpan" style="width: 420px" class="spanErrorMsgs" runat="server" visible="false">
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="myaccount" align="left" style="font-size: 25px; font-weight: bold;
                                    color: #032751">
                                User Registration
                            </td>
                        </tr>
                         <tr>
                                <td colspan="2">
                                    <hr />
                                </td>
                            </tr>
                        <tr>
                            <td class="Label" align="right">
                                EmailID (UserName) <span class="SpnColor">*</span>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtEmailId" runat="server" TabIndex="1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RF_EmailID" runat="server" ErrorMessage="Please, Enter Email ID"
                                    CssClass="validators" ControlToValidate="txtEmailId" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RF_EmailID">
                                </asp:ValidatorCalloutExtender>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmailId"
                                    CssClass="validators" ErrorMessage="Enter Valid Email" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    Display="none"></asp:RegularExpressionValidator>
                                <asp:ValidatorCalloutExtender ID="RegularExpressionValidator1_ValidatorCalloutExtender"
                                    runat="server" TargetControlID="RegularExpressionValidator1" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" align="right">
                                Password <span class="SpnColor">*</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtPass" runat="server" TabIndex="2" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPass"
                                    ErrorMessage="Enter Password" ForeColor="Red" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="RequiredFieldValidator2_ValidatorCalloutExtender"
                                    runat="server" Enabled="True" TargetControlID="RequiredFieldValidator2" />
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtPass"
                                    ErrorMessage="Enter Password Properly" ValidationExpression="(?!^[0-9]*$)(?!^[a-z]*$)^([a-z0-9@\$]{8,20})$"
                                    Display="None" CssClass="validators"></asp:RegularExpressionValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" Enabled="True"
                                    TargetControlID="RegularExpressionValidator3" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" width="120px" align="right">
                                Confirm Password <span class="SpnColor">*</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtCpass" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="None"
                                    ControlToValidate="txtCpass" ErrorMessage="Enter Confirm Password" CssClass="validators"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="RequiredFieldValidator3">
                                </asp:ValidatorCalloutExtender>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtpass"
                                    Display="none" ControlToValidate="txtCpass" ErrorMessage="Mismatch Password"
                                    CssClass="validators"></asp:CompareValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="CompareValidator1">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="Label " align="right">
                                Name<span class="SpnColor"> *</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Display="None"
                                    ControlToValidate="txtName" ErrorMessage="Please, Enter Name" CssClass="validators"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" TargetControlID="RequiredFieldValidator6">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" valign="top" align="right">
                                Address <span class="SpnColor">*</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtAddress" runat="server" Height="56px" TextMode="MultiLine"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
                                    ControlToValidate="txtAddress" ErrorMessage="Please, Enter Address" CssClass="validators"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RequiredFieldValidator1">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" align="right">
                                Location
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtLocation" runat="server" MaxLength="20"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" align="right">
                                Website <span class="SpnColor">*</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtWebsite" runat="server" MaxLength="25"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtWebsite"
                                    Display="None" ErrorMessage="Enter valid Website address" ValidationExpression="^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}$"></asp:RegularExpressionValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="RegularExpressionValidator7">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" valign="top" align="right">
                                Landline Number <span class="SpnColor">*</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtcno" runat="server" MaxLength="13"></asp:TextBox>
                                <asp:Label ID="Label1" runat="server" Text=" eg.022-29876541" CssClass="Label "></asp:Label>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtcno"
                                    ErrorMessage="Please Enter Contact number" CssClass="validators" Display="None"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtcno"
                                    CssClass="validators" Display="None" ErrorMessage="Enter Valid Number" ValidationExpression="^[0-9]\d{2,4}-\d{6,8}$"></asp:RegularExpressionValidator>
                                                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server" TargetControlID="RegularExpressionValidator5">
                                </asp:ValidatorCalloutExtender>
                                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender13" runat="server" TargetControlID="RequiredFieldValidator7">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" align="right">
                                Contact Person Name <span class="SpnColor">*</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtContactP_Name" runat="server" MaxLength="50"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="None"
                                    ControlToValidate="txtContactP_Name" ErrorMessage="Please,Enter Name"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="RequiredFieldValidator4">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" align="right">
                                Contact Person EmailId <span class="SpnColor">*</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtContactP_EmailID" runat="server" MaxLength="20"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please, Enter Email ID"
                                    CssClass="validators" ControlToValidate="txtContactP_EmailID" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="RequiredFieldValidator5">
                                </asp:ValidatorCalloutExtender>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtContactP_EmailID"
                                    CssClass="validators" ErrorMessage="Enter Valid Email" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    Display="none"></asp:RegularExpressionValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="RegularExpressionValidator2" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Label" width="200px" align="right">
                                Person Mobile Number <span class="SpnColor">*</span>
                            </td>
                            <td align="left"  >
                                <asp:TextBox ID="txtPers_MobileNo" runat="server" MaxLength="10"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="Invalid Number"
                                    Display="None" ControlToValidate="txtPers_MobileNo" ValidationExpression="^9[0-9]{9}$"
                                    CssClass="validators"></asp:RegularExpressionValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="RegularExpressionValidator4" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Button ID="btnSubmit" runat="server" CssClass="btnsubmit " Text="SUBMIT" OnClick="btnSubmit_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        </center>
    </div>
    </form>
</body>
</html>
